main:./main.c lib/libcal.a
	gcc main.c -o lib/libcal.a -I./include -o main
lib/libcal.a: lib/add.o lib/sub.o
	ar rcs lib/libcal.a lib/add.o lib/sub.o
lib/add.o: src/add.c
	gcc -c src/add.c -I./include -o lib/add.o
lib/sub.o: src/sub.c
	gcc -c src/sub.c -I./include -o lib/sub.o
.PHONY: clean
clean:
	rm -f lib/add.o lib/sub.o lib/libcal.a main
